package com.ethink.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.order.api.model.SaleReturnModeModel;
import com.ethink.order.api.model.SaleReturnModel;
import com.ethink.order.api.request.*;
import com.ethink.order.api.response.SaleReturnOrderAddResponse;
import com.ethink.order.api.response.SaleReturnQueryDetailResponse;

import java.util.List;

/**
 * 销售退单 Service接口
 *
 * @author default
 * @date 2022-12-09
 */
public interface SaleReturnOrderService {


    SaleReturnOrderAddResponse add(SaleReturnOrderAddRequest request);

    Page<SaleReturnModel> pageQuery(SaleReturnOrderQueryRequest request);

    SaleReturnQueryDetailResponse queryDetail(Long id);

    Boolean update(SaleReturnOrderUpdateRequest request);

    Boolean delete(Long id);

    Boolean pass(Long id);

    Boolean refuse(Long id);

    Boolean updateStatus(UpdateStatusBaseRequest request);

    Boolean saleReturnOrderStatusFinish(List<String> orderNo);

    Page<SaleReturnModeModel> pageQueryMode(SaleReturnOrderQueryModeRequest request);

}